import React, { Component } from 'react'
import { StoreProvider } from 'iflux2';
import AfterSale from './container/index';
import AppStore from './store.js'
@StoreProvider(AppStore)
export default class OrderDetail extends Component {

    componentDidMount(){
        if(this.props.params.rid){
            //查询售后订单
            this.props.store.fetchOrder(this.props.params.rid).then(()=>{
                //查询卖家留言
                this.props.store.fetchSellerMsg();
                //获取订单金额信息，
                this.props.store.fetchRefundOrderInfo();
            });
        }
        
    }
    render(){
        return (
            <div>
                <AfterSale />
            </div>
        )
    }
}